const express = require('express')

const app = express()

app.get('/', (request, response) => {
  response.send('首页')
})

app.post('/login', (request, response) => {
  response.send('登录成功')
})

app.all(`*url`, (request, response) => {
  response.send(`404 找不到资源，路由：${request.params.url}`)
})

app.listen(9000, () => {
  console.log('服务已启动，9000端口监听中。。。')
})